function squareMeters(w, h) {
	return w * h;
};

$(document).ready(function() {

	$("#sqMeters").submit(function() {
		var w = parseInt($("#width").val());
		var h = parseInt($("#height").val());
		var total = squareMeters(w, h);
		var readTextinPar = $("#result").text();// read the text which is
												// already in the paragraph in
												// the html
		$("#result").html(total + ' ' + readTextinPar);
		return false;// prevents the form from constantly submitting

	});

});
